package com.atkusen.mini.minidanke.service;

import com.atkusen.mini.common.entity.MiniUserEntity;
import com.atkusen.mini.common.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atkusen.mini.common.utils.PageUtils;


import java.util.Map;
import java.util.Set;

/**
 * 
 *
 * @author Ghl
 * @email 807866012@qq.com
 * @date 2021-05-07 21:30:45
 */
public interface MiniUserService extends IService<MiniUserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    User findByUsername(String username);

    /**
     * 查找用户的菜单权限标识集合
     * @param username
     * @return
     */
    Set<String> findPermissions(String username);
}

